package com.ldzy.goods.mapper;

import com.ldzy.common.pojo.Goods;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

@Repository
public interface GoodsMapper {
    @Update(value = "update goods set count=#{count} where id=#{id}")
    public int updateCountById(Goods goods);//修改商品信息
    @Select(value = "select * from goods where id=#{id}")
    public Goods queryById(Long id);
}
